package com.qf.dao.caiwu_dao;

import com.qf.bean.Debt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DebtMapper {
    int deleteByPrimaryKey(Integer did);

    int insert(Debt record);

    int insertSelective(Debt record);

    Debt selectByPrimaryKey(Integer did);

    int updateByPrimaryKeySelective(Debt record);

    int updateByPrimaryKey(Debt record);

    //查询欠款信息列表
    List<Debt> findDeptList(Map map);

    //欠款表中欠款金额减去收款金额
    int subtractOwe(@Param("refund") double refund,@Param("did")Integer did);
}